package com.example.student.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.student.config.PageParam;
import com.example.student.entity.User;
import org.apache.ibatis.annotations.Param;

public interface UserMapper extends BaseMapper<User> {
    /**
     * 分页查询--管理员
     * @param page
     * @author lx
     * @date 2022/2/20 23:20
     * @return
     */
    IPage<User> pageAll(Page<User> page, @Param("param") PageParam pageParam);

    /**
     * 分页查询
     * @param page
     * @author lx
     * @date 2022/2/20 23:20
     * @return
     */
    IPage<User> page(Page<User> page, @Param("param") PageParam pageParam);
}
